﻿Imports Entidad
Imports Datos

Public Class DocumentoAlmacenDetallePickeadorNegocio

    Dim dao As New DocumentoAlmacenDetallePickeadorDatos

    Function obtenerCodigoGeneradoDADP(tipoDOC As String) As Integer
        Return dao.obtenerCodigoGeneradoDADP(tipoDOC)
    End Function

    Sub registrarDocumentoAlmacenDetallePickeador(ByVal dadp As DocumentoAlmacenDetallePickeador)
        dao.registrarDocumentoAlmacenDetallePickeador(dadp)
    End Sub

    Function verificarExistenciaDocumentoAlmacenDetallePickeador(ByVal codPedido As String, ByVal codPick As String, ByVal pddcod As String, tipoDOC As String) As Boolean
        Return dao.verificarExistenciaDocumentoAlmacenDetallePickeador(codPedido, codPick, pddcod, tipoDOC)
    End Function

    Sub actualizarCantidadDocumentoAlmacenDetallePickeador(ByVal codPedido As String, ByVal codPick As String, ByVal cant As String, ByVal pddCod As String, tipoDOC As String)
        dao.actualizarCantidadDocumentoAlmacenDetallePickeador(codPedido, codPick, cant, pddCod, tipoDOC)
    End Sub

    Function verificarInicioPicking(codPedido As String, tipoDOC As String) As Boolean
        Return dao.verificarInicioPicking(codPedido, tipoDOC)
    End Function

    Function verificarAsignacionPedido(ByVal codPedido As String, ByVal codPick As String, tipoDOC As String) As String
        Return dao.verificarAsignacionPedido(codPedido, codPick, tipoDOC)
    End Function

    Sub cambiarAsignacionDocumentoAlmacenPickeador(ByVal codPedido As String, ByVal act As String, ByVal codPick As String, tipoDOC As String)
        dao.cambiarAsignacionDocumentoAlmacenPickeador(codPedido, act, codPick, tipoDOC)
    End Sub

    Function verificarInicioPickeo(ByVal pedCodigo As String, ByVal pickCodigo As String, tipoDOC As String) As Boolean
        Return dao.verificarInicioPickeo(pedCodigo, pickCodigo, tipoDOC)
    End Function

    Function obtenerDocumentoAlmacenDetallePickeador(ByVal pedCodigo As String, ByVal codPick As String, tipoDOC As String) As DataSet
        Return dao.obtenerDocumentoAlmacenDetallePickeador(pedCodigo, codPick, tipoDOC)
    End Function

    Sub actualizarPedidoPickeadorFechaFin(ByVal codPedido As String, ByVal codPick As String, ByVal pddCod As String, tipoDOC As String)
        dao.actualizarPedidoPickeadorFechaFin(codPedido, codPick, pddCod, tipoDOC)
    End Sub

    Function listarDocumentoAlmacenDetallePickeador() As DataSet
        Return dao.listarDocumentoAlmacenDetallePickeador()
    End Function

    Function obtenerCodigosDetalleNoPickeados(cia As String, suc As String, alm As String, tdoc As String, dcaCodigo As String) As DataSet
        Return dao.obtenerCodigosDetalleNoPickeados(cia, suc, alm, tdoc, dcaCodigo)
    End Function

    Function obtenerCantidadDetallesAsignados(cia As String, suc As String, alm As String, tdoc As String, dcaCodigo As String) As Integer
        Return dao.obtenerCantidadDetallesAsignados(cia, suc, alm, tdoc, dcaCodigo)
    End Function

    Function obtenerArticulosPickeados(codPedido As String, codPickeador As String) As DataSet
        Return dao.obtenerArticulosPickeados(codPedido, codPickeador)
    End Function

End Class
